import { ENUM_DATA_SCOPE } from "@/enum/system.enum";

export type IQuery<T = Record<string, any>> = {
  pageNum: number;
  pageSize: number;
  isAsc?: "desc" | "asc";
  orderByColumn?: string;
  total?: number;
  scope?: ENUM_DATA_SCOPE;
  [key: string]: any;
} & T;
/*  */
export interface ITableResponse<T> {
  code: number;
  msg: string;
  rows: Array<T>;
  total: number;
}
/* 普通接口 */
export interface IResponse<T = undefined> {
  code: number;
  msg: string;
  data: T;
}
export interface TableConfig<T = undefined> {
  data: T[];
  loading: boolean;
  rowKey: string;
  keys: string[];
}
